package ar.edu.utn.frsf.cidisi.upcolbpip2pn.generator.petrinet;

public class Transition {

	private static int GlobalTransitionId = 200001;
	private static int GlobalInfoId = 210001;

	
	private String id;
	private String infoId;
	private int posX;
	private int posY;
	private String text;
	private SubPage subPage;
	
	public Transition(){
		super();
	}

	public Transition(String text){
		super();
		GlobalTransitionId++;
		GlobalInfoId++;
		
		id = "ID"+GlobalTransitionId;
		infoId = "ID"+GlobalInfoId;
		
		this.text = text+GlobalTransitionId; 
	}
	
	public static void reset(){
		GlobalTransitionId = 200001;
		GlobalInfoId = 210001;
		
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getPosX() {
		return posX;
	}

	public void setPosX(int posX) {
		this.posX = posX;
	}

	public int getPosY() {
		return posY;
	}

	public void setPosY(int posY) {
		this.posY = posY;
	}

	public SubPage getSubPage() {
		return subPage;
	}

	public void setSubPage(SubPage subPage) {
		this.subPage = subPage;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getInfoId() {
		return infoId;
	}

	public void setInfoId(String infoId) {
		this.infoId = infoId;
	}
	
}
